setTimeout(function(){

btn = shrinkBtn('好货采集');
html = hhCollectPanel();
$('html body').append(btn);
$('html body').append(html);

},1500);

//------------------------------------------事件点击---------------------------------------------------
//列表按钮点击事件
$('html body').on('click','.listBtn',function () {
	console.log(111);
	that = $('.hh_collect_process');
	wordsPrepend(that,'开始');
	content_ids = hhContentIdGet();
	if(content_ids){
		data = JSON.stringify(content_ids);
		result = hhContentIdSubmit(data);
		wordsPrepend(that,'列表采集完成');
	}
});

//采集点击事件
$('html body').on('click','.collectBtn',function () {
	that = $('.hh_collect_process');
	wordsPrepend(that,'开始');
	inte = setInterval(function(){
		content_id = hhContentId();
		if(!content_id){
			clearInterval(inte);
			wordsPrepend(that,'done');
			return;
		}
		data = originArticleData(content_id);
		data = JSON.stringify(data);
		console.log(data);
		hhDataSubmit(content_id,data);
		wordsPrepend(that,content_id,1);
	},5000)
})
